package com.forum.module.system.dal.mysql.file;

import com.forum.framework.common.pojo.PageResult;
import com.forum.framework.mybatis.core.mapper.BaseMapperX;
import com.forum.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.forum.module.system.controller.admin.file.vo.FilePageReqVO;
import com.forum.module.system.dal.dataobject.file.FileDO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface FileMapper extends BaseMapperX<FileDO> {
    default PageResult<FileDO> selectPage(FilePageReqVO reqVO){
        return selectPage(reqVO, new LambdaQueryWrapperX<FileDO>()
                .betweenIfPresent(FileDO::getCreateTime, reqVO.getCreateTime()));
    }
}
